<?
function log_access()
{
	$login = $_SESSION["login"];
	$ip = $_SERVER['REMOTE_ADDR'];
	$date = date("Y-m-d H:i:s", strtotime("+8 hours"));
	$sql = "INSERT INTO `access_trial` (`name`,`date`,`ip`) VALUES('$login', '$date','$ip')";
	mysql_query($sql) or die ("Cannot put access data");
}
?>